﻿<Window x:Class="Control_DB_Railway.Views.Authorization"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Control_DB_Railway"
        mc:Ignorable="d"
        WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize"
        Height="270" 
        Width="220">

    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>

        <!--GroupBox в элементам для авторизации-->
        <GroupBox Header="Авторизация"
                  Width="150"
                  Grid.Row="0"
                  BorderBrush="Black"
                  BorderThickness="2"
                  Height="190"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Top"
                  Margin="0 10 0 0"
                  FontSize="13">

            <Grid>

                <!--Сетка для элементов в GroupBox-->
                <Grid.RowDefinitions>
                    <RowDefinition Height="75"/>
                    <RowDefinition Height="75"/>
                </Grid.RowDefinitions>

                <!--Логин-->
                <TextBlock Grid.Row="0"
                           HorizontalAlignment="Left"   
                           Text="Логин:" 
                           VerticalAlignment="Top" 
                           Margin="10,20,0,0"/>

                <TextBox Name="textBox_login"
                         Grid.Row="0"
                         HorizontalAlignment="Center" 
                         VerticalAlignment="Top" 
                         Width="120" 
                         Margin="0,40,0,0"/>

                <!--Пароль-->
                <TextBlock Grid.Row="1"
                           HorizontalAlignment="Left"   
                           Text="Пароль:" 
                           VerticalAlignment="Top" 
                           Margin="10,20,0,0"/>

                <PasswordBox Name="passwordBox_password"
                             Grid.Row="1"
                             HorizontalAlignment="Center" 
                             VerticalAlignment="Top" 
                             Width="120" 
                             Margin="0,40,0,0"/>

            </Grid>

        </GroupBox>

        <!--Кнопка-->
        <Button Name="buttonLoginSystem"
                Grid.Row="1"
                Content="Войти"  
                Margin="2 2 2 2"
                Click="buttonLoginSystem_Click"/>

    </Grid>

</Window>
